home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / basics / simpleeditsdi.win / qtime.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  982 b   |  35 lines

  1.  /*
  2.     File:        QTime.c
  3.  
  4.     Written by: Keith Gurganus
  5.  
  6.       Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  7. */
  8.  
  9. #ifndef __QTIME__
  10. #define __QTIME__
  11.  
  12. typedef struct{
  13.     char            filename[255];
  14.     Movie            theMovie;
  15.     MovieController theMC;
  16.     Boolean            movieOpened;
  17.     HWND            theHwnd;
  18. }MovieStuff;
  19.  
  20. BOOL OpenMovie(HWND hwnd, MovieStuff *movieStuff);
  21. void CloseMovie(MovieStuff *movieStuff);
  22. OSErr SaveMovie(MovieStuff *movieStuff);
  23. OSErr SaveAsMovie(MovieStuff *movieStuff);
  24. BOOL GetFile(char *fileName);
  25.  
  26. ComponentResult EditCut(MovieController mc);
  27. ComponentResult EditCopy(MovieController mc);
  28. ComponentResult EditPaste(MovieController mc);
  29. ComponentResult EditClear(MovieController mc);
  30. ComponentResult EditUndo(MovieController mc);
  31. ComponentResult EditSelectAll(Movie movie, MovieController mc) ;
  32.  
  33. void SetWindowTitle(HWND hWnd, unsigned char *theFullPath);
  34. void GetFileNameFromFullPath(unsigned char *theFullPath, unsigned char *fileName);
  35. #endif